<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script type="text/javascript">
		var st1=prompt('请输入你的分数');
		var st2=prompt('请输入你的分数');
		// var max=(st1>st2)?st1:st2;
		// console.log(max);
		console.log(Math.max(st1,st2));
		console.log(Math.abs(st1-st2));
	</script>
</head>
<body>

</body>
</html>